package com.jx.lcs.util.export;

import java.util.Collection;

/**
 * sheet 定义
 * 
 * @author sunlt
 * @date 2015.07.14
 */
public class SheetDefination<T> {

  /**
   * sheet标题
   */
  private String sheetTitle;

  /**
   * 表格表头
   */
  private String[] headers;

  /**
   * 每列的取值属性，key或field
   */
  private String[] dataKeys;

  /**
   * 数据集
   */
  private Collection<T> dataset;

  /**
   * T的类型对象，Map 不需要
   */
  private Class<T> beanClass;

  public String getSheetTitle() {
    return sheetTitle;
  }

  public void setSheetTitle(String sheetTitle) {
    this.sheetTitle = sheetTitle;
  }

  public String[] getHeaders() {
    return headers;
  }

  public void setHeaders(String[] headers) {
    this.headers = headers;
  }

  public String[] getDataKeys() {
    return dataKeys;
  }

  public void setDataKeys(String[] dataKeys) {
    this.dataKeys = dataKeys;
  }

  public Collection<T> getDataset() {
    return dataset;
  }

  public void setDataset(Collection<T> dataset) {
    this.dataset = dataset;
  }

  public Class<T> getBeanClass() {
    return beanClass;
  }

  public void setBeanClass(Class<T> beanClass) {
    this.beanClass = beanClass;
  }

}
